<template>
  <userInfoBox @exchangeFinish="exchangeFinish" />
  <payCom />
</template>

<script setup lang="ts" name="UserCenter">
import { messageAppStore } from "@/stores/message";
import userInfoBox from "@/layout/components/user-info-box.vue";
import payCom from "@/components/pay/index.vue";
import { useRoute } from "vue-router";
const route = useRoute();
function exchangeFinish() {
  if (route.name === 'OrderList') {
    messageAppStore().onExchangeFinishNotice()
  }
}
</script>

<style lang="scss" scoped></style>
